package com.xindacloud.sms.console.system.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xindacloud.sms.console.result.Result;
import com.xindacloud.sms.console.system.dto.SmsDeliveryReceiptDTO;
import com.xindacloud.sms.console.system.entity.SmsDeliveryReceipt;
import com.xindacloud.sms.console.system.service.ISmsDeliveryReceiptService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 消息明细 前端控制器
 * </p>
 *
 * @author czc
 * @since 2019-10-08
 */
@Api(tags = {"短信接收模块"})
@RestController
@RequestMapping("/api/v1/sms-delivery-receipt")
public class SmsDeliveryReceiptController {

	@Autowired
	private ISmsDeliveryReceiptService smsDeliveryReceiptService;
	
	@ApiOperation(value = "获取短信接收列表",response=SmsDeliveryReceipt.class)
	@PostMapping(value = "/getSmsReceiptList")
	public Result getSmsReceiptList(@RequestBody SmsDeliveryReceiptDTO smsDeliveryReceiptDTO) {
	    return smsDeliveryReceiptService.getSmsReceiptList(smsDeliveryReceiptDTO);
	}
}
